import type { RegisterType } from "@/views/register/interface";
import axios from ".";

export const Register = (ruleForm: RegisterType) => axios.post("/noauth/register", ruleForm);

export const isExist = (userName: string) => axios.get("/noauth/isexist", { params: { userName } });
export const isExistEmail = (email: string) => axios.get("/noauth/isexistemail", { params: { email } });
export const sendEmail = (email: string) => axios.post("/noauth/sendemail", { email });
